// require('./db'); //连接数据库
const mongoose = require('mongoose'); //导入

const Schema = mongoose.Schema; //创建集合字段

let studentSchema = new Schema({
  name: String,
  age: Number,
  score: Number,
})



let student = mongoose.model('student', studentSchema)

module.exports = student; //导出学生